{* Smarty *}

<b class="title">Current Sale of the month</b><br />
<br />
{if $sotm.id>0}
<table cellpadding="2" cellspacing="1" border="1">
<tr class="light">
	<td align="right">Product ID:</td>
	<td>{$sotm.id}</td>
</tr>
<tr class="dark">
	<td align="right">Product title:</td>
	<td>{$sotm.title}</td>
</tr>
<tr class="light">
	<td align="right">Product root:</td>
	<td>{$sotm.history}</td>
</tr>
<tr class="dark">
	<td align="right" valign="top">Thumbnail:</td>
	<td><img src="/inventory/{$sotm.image}" border="0" /></td>
</tr>
</table>
{else}
<span style="font-weight:normal;">No item selected yet</span>
{/if}
<br /><br />
<b class="title">Set new Sale of the month</b><br /><br />
Category:<br />
<select name="category" onchange="javascript: window.location.href='{geturl plugin=_this method=post params="id="}'+this.options[this.selectedIndex].value;">
{foreach from=$categorieslist item=ctg}
	<option value="{$ctg.id}"{if $categoryid==$ctg.id} selected{/if}>{$ctg.title}</option>
{/foreach}
</select><br />
<br />
{$products}
<br />

